package com.seagull.sb.security;

import com.seagull.sb.domain.Teacher;
import com.seagull.sb.security.BaseUser.Role;

public class UserTeacher extends BaseUser{
    private Teacher teacher;
    
    public UserTeacher(Teacher teacher){this.teacher = teacher;}
	public int getOrgId(){return teacher.getOrgId();}
	public int getClassId(){return teacher.getClassId();}
	public int getStudentId(){return 0;}
	public int getTeacherId(){return teacher.getId();}
	
	public Role getRole(){return Role.teacher;}
	public boolean isTeacher(){return true;}
		
	public Teacher getTeacher() {
		return teacher;
	}
	public void setTeacher(Teacher teacher) {
		this.teacher = teacher;
	}
}